package com.lifo.utils;

import com.lambdaworks.crypto.SCryptUtil;

/**
 * Created by why on 2018/4/16 0016.
 */
public class EncryptionUtils {

    /**
     * 加密方法
     * @param pwd 参数
     * @return
     */
    public static String encrypStr(String pwd){
        return SCryptUtil.scrypt(pwd, 16, 16, 16);
    }

    public static void main(String[] args) {
        System.out.println(encrypStr("123456a"));
    }
}
